StackPlot p;

void setup(){
  background(0);
  size(600, 600);
  
  int[][] freqArray = fillFreqArray();
  
  //int[][] freqArray, Date dateMin, Date dateMax, float plotX1, float plotY1, float plotX2, float plotY2, String title,
             //String xAxisTitle, String yAxisTitle, int[] categoryColors ) {
  p = new StackPlot( );
}

void draw(){
  
}

int[][] fillFreqArray(){
  int numYears = 2010-1972;
  freqArray = new int[7][numYears*12];
  for(int category = 0; category < freqArray.length; category++){
    for(int theMonth = 0; theMonth < freqArray[i].length; theMonth++){
      if( category == 0 ){
        freqArray[category][theMonth] = random(30, 50);
      } else if( category == 1 ) { //mag 0-4
        freqArray[category][theMonth] = random(170, 300);
      } else if( category == 2 ){//mag 4-5
        freqArray[category][theMonth] = random(100, 200); 
      } else if( category == 3 ){//mag 5-6
        freqArray[category][theMonth] = random(5, 10);
      } else if( category == 4 ){//mag 6-7
        freqArray[category][theMonth] = random(0, 10); 
      } else if(category == 5 ){
        freqArray[category][theMonth] = random(
      }
      
    }//end inner for loop
  }//end outer for loop
  
}
